package com.zq.learing.base.关键字;

/**
 * @Author: zhaoqi
 * @Date: 2020/4/30 22:05
 * @Version 1.0
 */

public class FinalString {

    private String str;

    public FinalString(String str){
        this.str = str;
    }

    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        this.str = str;
    }


    public static void main(String[] args) {

        test0();

        tets1();

        final String[] strs0 = {"123","234"};
        final String[] strs1 = {"345","456"};
        //strs1 = strs0;
        strs1[1] = "333";
    }

    private static void test0() {
        final FinalString fs = new FinalString("1");
        fs.setStr("2");
        System.out.println(fs.getStr());
    }

    private static void tets1() {
        final FinalString fs10 = new FinalString("1");
        final FinalString fss = new FinalString("333");
        //fs10 = fss;
    }
}
